package com.example.demo.rocketmq;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderProducer {
    @Resource
    private MQSender mqSender;

    public void createOrder() {
        mqSender.sendMessage("我是注册订单，请尽快处理", "TEMP");
    }

}